package org.haredot.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.haredot.entity.Func;

import java.util.List;
import java.util.Map;

@Mapper
public interface FuncMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Func record);

    Func selectByPrimaryKey(Long id);

    int updateByPrimaryKey(Func record);

    Func findByName(@Param("name") String name);

    List<Func> findAll(Map<String, ?> params);

    Func findByRemark(String remark);

    int removeById(Long funcId);
}